package day20171031;

public class A {
    public  int a=1;
    public  int b=2;
    public  int c=3;
    int d=4;
    public int dispA(){
        return a;
    }
    public int dispB(){
        return b;
    }
    protected int dispC(){
        return c ;
    }
    int dispD(){
        return d;
    }
    public static class xt040201 extends A{
        public static void main(String[] args) {
            xt040201 bb=new xt040201();
            bb.testVisitControl();
        }
        public void testVisitControl(){
            System.out.println(a+dispA());
            System.out.println(b+dispB());
            System.out.println(c+dispC());
            System.out.println(d+dispD());
        }
    }
}
